﻿@{
    Layout = "~/Views/Shared/_Root.Head.cshtml";
}
@Html.Widget("mobile_body_start_html_tag_after")
<div data-role="page" id="mainpage" data-theme="d"> @*data-theme="b" *@
    <div data-role="header" data-position="inline" data-theme="d"> @*data-theme="c"*@
        @*do not use @Html.Partial("Header")
            use sections right here so they can be overriden in the views*@
        @if (IsSectionDefined("topleftbutton"))
        {
            @RenderSection("topleftbutton")
        }
        else
        {
            @Html.ActionLink(T("Common.Home").Text, "Index", "Home", new { area = "Commerce" }, new Dictionary<string, object> {{ "data-icon" ,"home" }})
        }
        <div data-role="none">
            <a href="@Url.RouteUrl("HomePage")" data-role="none">  @* Error: Link to Gateway Page *@
                <img src="~/Content/Images/spotshub-textlogo.png" class="header-logo" alt="SpotsHUB" />
            </a>
        </div>
        @if (IsSectionDefined("toprightbutton"))
        {
            @RenderSection("toprightbutton")
        }
        else
        {
            <!--
            <a href="@Url.RouteUrl("HomePage")" data-icon="grid" data-iconpos="top"></a> 
            @*<a href="#" data-rel="back" data-icon="back">Back</a>*@
            @Html.Action("ConfigButton", "Common")-->
        }
    </div>  

    @if (IsSectionDefined("headerlinks"))
    {
        @RenderSection("headerlinks")
    }
    else
    {
        <div data-role="header" data-position="inline">
            @Html.Action("HeaderLinks", "Common")
        </div>
    }
    @Html.Widget("mobile_content_before")
    <div data-role="content">
        @Html.Partial("_Notifications")
        @RenderBody()
    </div>
    @Html.Widget("mobile_content_after")
    @if (IsSectionDefined("footer"))
    {
        @RenderSection("footer")
    }
    else
    {
        <div data-role="footer">
            @Html.Action("Footer", "Common")
        </div>
    }
</div>
@Html.Action("EuCookieLaw", "Common")
@Html.Widget("mobile_body_end_html_tag_after")
